package com.stefanie.study.dp;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: stefanie-zy
 * @time: 2024/7/9-15:55
 * @description: 装饰模式-抽象装饰类
 */
@Slf4j
public class Decorator extends Component {
    private final Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    // 基础功能
    @Override
    public void display() {
        component.display();
    }
}
